package com.jiaai.cloud.chatroom.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.cloud.base.page.CustomPage;
import com.jiaai.cloud.chatroom.entity.TChatRoom;
import com.jiaai.cloud.chatroom.entity.TChatRoomMember;
import com.jiaai.cloud.chatroom.mapper.TChatRoomMemberMapper;
import com.jiaai.cloud.chatroom.service.ITChatRoomMemberService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 聊天室成员表 服务实现类
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-01
 */
@Service
public class TChatRoomMemberServiceImpl extends ServiceImpl<TChatRoomMemberMapper, TChatRoomMember> implements ITChatRoomMemberService {
    @Override
    public CustomPage<TChatRoomMember> findCharFully(Page page, @Param("ew") Wrapper wrapper) {
        page.setRecords(baseMapper.findCharFully(page,wrapper));
        return new CustomPage(page);
    }
}
